#ifndef ECONTAINER_H
#define ECONTAINER_H

#include <iostream>
#include <Fl/Fl.h>
#include <FL/Fl_Multiline_Input.H>
#include "cetele.h"
#include "eDragbox.H"
#include "textwidget.H"

class textWidget;
class eDragBox;
class eContainer : public Fl_Group
{
    public:
        eContainer(int x,int y,int w,int h,bool hareket_,bool psizable);
        virtual ~eContainer();
        Fl_Multiline_Input *kutumetin();
        int cr();
        int cg();
        int cb();
        int calpha();
        int cyatay();
        int cdikey();

        void cr(int pr);
        void cg(int pg);
        void cb(int pb);
        void calpha(int palpha);
        void cdikey(int pdikey);
        void cyatay(int pyatay);
        Fl_Group *inner;

        bool deletesil();
        void deletesil(bool p);
    protected:
        int handle(int event);
    private:
        eDragBox *b1;
        eDragBox *b2;
        Fl_Group *sahip;
        bool hareket;
        Fl_Multiline_Input *metinkutusu;
        bool sizable;
        bool sildelete;
        int cR;
        int cG;
        int cB;
        int cAlpha;
        int yatay;
        int dikey;

        int tx,ty;
        int tw,th;
};

#endif // ECONTAINER_H
